// 根据name找父组件 by shw
const vFindParentByName = function (_this, name) {
	let parent = _this.$parent
	while (parent) {
		if (parent.$options.name === name) {
			return parent
		}
		parent = parent.$parent
	}
}

export default {
	vFindParentByName
}
